package com.adam.blog.service;

import com.adam.blog.dao.pojo.Article;
import com.adam.blog.vo.ArticleVo;
import com.adam.blog.vo.Result;
import com.adam.blog.vo.params.ArticleParams;
import com.adam.blog.vo.params.PageParams;

import java.util.List;

public interface ArticleService {
    /**
     * 分页查询文章列表
     * @param pageParams
     * @return
     */
    public List<ArticleVo> listArticle(PageParams pageParams);

    public List<ArticleVo> hotArticle(int limit);

    public List<ArticleVo> newArticle(int limit);

    public Result listArchives();

    public Result findArticleById(Long articleId);

    /**
     * 发布文章
     * @param articleParams
     * @return
     */
    public Result publish(ArticleParams articleParams);
}
